package com.lanou3g.code0404.morning;

/**
 * If there are no bugs, it was created by Chen FengYao on 2018/4/4;
 * Otherwise, I don't know who created it either
 */

public class Test03 {
    public static void main(String[] args) {
        Table[] a = new Table[3];

        Table table = new Table();

        for (int i = 0; i < a.length; i++) {
            table.legCount = i;
            a[i] = table;
        }

        int aa = 3;
        int b = aa;

        //2
        System.out.println(a[0].legCount);

        Foo3 foo3 = new Foo3();
        foo3.add(1, 3);
    }
}
